package com.njtoyo.taxi.admin.rest.controller.business;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.aop.PassToken;
import com.njtoyo.taxi.admin.aop.PermissionScope;
import com.njtoyo.taxi.admin.mapper.master.entity.CallEndSend;
import com.njtoyo.taxi.admin.rest.presenter.business.CompanyFeeRatePresenter;
import com.njtoyo.taxi.admin.rest.presenter.business.CompanyListPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.business.company.*;
import com.njtoyo.taxi.admin.service.business.CompanyService;
import com.njtoyo.taxi.admin.service.open.CallEndSendService;
import com.njtoyo.taxi.entity.backend.AdminUser;
import com.taxi.entity.common.RestResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import javax.validation.Valid;
import java.util.Date;
import java.util.List;

@RestController
@Api(value = "呼叫结束推送", tags = "呼叫结束推送")
@RequestMapping("business/callEndSend")
public class CallEndSendController {

    @Autowired
    private CallEndSendService callEndSendService;
    /**
     * 呼叫结束推送
     *
     * @return
     */
    @GetMapping("/list")
    RestResult list(@RequestParam(value = "current", required = false, defaultValue = "1") Integer current
            ,@RequestParam(value = "size", required = false, defaultValue = "10") Integer size
            ,@RequestParam(value = "tel", required = false) String tel
            ,@RequestParam(value = "beginTime", required = false) String beginTime
            ,@RequestParam(value = "endTime", required = false) String endTime
            ,@RequestParam(value = "rideId", required = false) Long rideId
            ) {
        return callEndSendService.selectCallEndSendList(current, size, tel,beginTime,endTime,rideId );
    }

}
